package com.atmilan.quartz.sync.pull.buyer.converter;

import java.util.List;

import org.mapstruct.Mapper;

import com.atmilan.quartz.model.dto.buyer.BuyerProductResDTO;
import com.atmilan.quartz.model.entity.buyer.BuyerProductSku;
import com.atmilan.quartz.model.entity.buyer.BuyerProductSkuMerged;

/**
 * @author hupeng
 */
@Mapper(componentModel = "spring")
public interface BaseBuyerSkuConverter {

    public abstract BuyerProductSku toModel(BuyerProductResDTO.ProductSku sku);

    public abstract List<BuyerProductSku> toModelList(List<BuyerProductResDTO.ProductSku> skus);

    public abstract BuyerProductSkuMerged toMergedModel(BuyerProductSku sku);

    public abstract List<BuyerProductSkuMerged> toSkuMergedModelList(List<BuyerProductSku> skuList);
}
